home *** CD-ROM | disk | FTP | other *** search
/ The PC-SIG Library 10 / The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso / PC_SIGCD / 05 / 6 / DISK0568.ZIP / 123EGA.ARC / 123EGA.PAT < prev    next >
Text File  |  1985-08-11  |  3KB  |  64 lines

  1. Hi All:
  2.     It's me again with another patch for the IBM Enhanced
  3. Graphic Adapter.  Well, as you probably know by now, this one's for
  4. the program that made the PC famous..... Lotus 123.  And now on to the
  5. fun stuff........
  6.     This patch will allow your PC to use 123 graphics in the 320
  7. x 200 mode, 4 colors.  This patch is only here to allow you to use
  8. 123 until someone up in Lotusland decides to write a real graphics
  9. driver for the EGAD.  Until then, you are pretty much stuck with the
  10. same old graphics you had before.  But I suppose that's better than
  11. no graphics.
  12.     I just figured this out (at 2:30 in the morning), so I am not
  13. going to guarantee that it works on all releases of 123.  The version
  14. I patched is plain old 1A, so I don't know if it will work on any other
  15. releases.  Anyways, on to the procedure......
  16.  
  17. First, on a SCRATCH disk, copy IBM1G2.DRV from the Lotus Utility disk.
  18. Now, rename this file to IBM1EGAD.DRV (or whatever floats your boat).
  19. Now, copy DEBUG.COM from your DOS diskette to the SCRATCH disk.  This
  20. version of DEBUG must be from at least DOS 2.0, or it won't work.  Type
  21. in, from the command prompt, 
  22.  
  23. A>DEBUG IBM1EGAD.DRV <ret>
  24. -A 186 <ret>
  25. ????:0186 JMP 1A6 <ret>
  26. ????:0188 <ret>
  27. -A 1B7 <ret>
  28. ????:01B7 MOV AX,0004 <ret>
  29. ????:01BA CMP BL,00 <ret>
  30. ????:01BD JNZ 1C1 <ret>
  31. ????:01BF MOV AL,5 <ret>
  32. ????:01C1 INT 10 <ret>
  33. ????:01C3 JMP 1CA <ret>
  34. ????:01C5 <ret>
  35. -W <ret>
  36. Writing 08B5 bytes.  {Debug returns this}
  37. -Q <ret>
  38.  
  39.     Now, after all this garbage, you should be back in DOS.  Copy
  40. your new IBM1EGAD.DRV file to GD.DRV on all of your working 123 disks.
  41. I hope this patch flies for you, because it worked for me.
  42.     For all of those interested, this is what I did to the driver:
  43. When 123 uses this driver, it starts execution at ????:0184, where it
  44. loads AL with 00 if B/W graphics are used, and something else if color
  45. graphics are used.  At 184, there is a MOV BL,AL instruction.  From here
  46. to ????:1A6, the driver loads the 6845 registers with stuff directly
  47. out of the Tech Ref manual, to get the C/G adapter into 320 x 200 mode.
  48. My patch skips all this stuff, because this is the stuff that is
  49. probably killing the EGAD.  (That is the JMP 1A6 instruction in the
  50. Patch).  From 1A6 to 1B7, the driver clears out the graphics memory.
  51. I kept this intact.  At 1B7 to 1CA, the driver sets up color or B&W
  52. (depending on the contents of the BL register) and returns back to 123
  53. at ????:1CA (There is a RETF instruction here).  My patch basically
  54. overrides this by allowing DOS to configure the EGAD.  Hence the INT 10
  55. instruction in the patch.  If AH is 00 and AL is 04 when INT 10 is
  56. executed, the EGAD will be placed in 320 x 200 color.  If AH is 00 and
  57. AL is 05, then the EGAD will be set at 320 x 200 black and white.  Then
  58. the patch jumps to the RETF instruction originally in the driver. 
  59. Enough said, and, may the force be with you........
  60.  
  61.  
  62.  
  63.